<template>
  <div class="app-container">
    <el-tabs ref="drugExportRef" v-model="activeName" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="申领出库确认" name="1">
        <drug-apply-for-export/>
      </el-tab-pane>
      <el-tab-pane label="其他" name="2"></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script lang="ts" setup>

import DrugApplyForExport from "./drugApplyForExport.vue";

const activeName = ref("1");
const drugExportRef = ref()

// 左侧列表点击后默认加载第一个tab页
function handleClick(pane, _Event) {
  if (typeof pane === "undefined" || pane.props.name === "1") {
    activeName.value = "1";
    nextTick(() => {
      drugExportRef.value.getClinicMasterFun();
    });
  }
}

</script>

<script lang="ts">
export default {
  name: "DrugConfirmImport",
}
</script>


